Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Signature of EventDispatcherInterface::dispatch() has changed #733

Closed
wants to merge 6 commits into from

Conversation

pfrenssen
Copy link
Contributor

In Drupal 9.1 the order of the arguments to this method has been changed.

Ref. Change record #3154407: Signature of EventDispatcherInterface::dispatch() has changed

Fixes #725.

This also updates the touched classes with modern practices, such as introducing missing type hints, and some small unrelated fixes.

@pfrenssen
Copy link
Contributor Author

This is failing on PHP 7.3 because it introduces typed properties which are PHP7.4+. Let's block this on #732 which increases our minimum PHP requirement to 7.4.

@pfrenssen
Copy link
Contributor Author

Nice, the type hints that were added have uncovered some bugs in the BundleFormAlter class. It indeed looks like this is some very early code that is not following correct OO practices, and has mixed up some things like entity IDs and bundles.

I will handle this in a separate PR.

@pfrenssen pfrenssen self-assigned this Dec 17, 2021
pfrenssen added a commit that referenced this pull request Dec 19, 2021
This reverts commit 7e1790c. This change is
being handled in #733.
@claudiu-cristea
Copy link
Collaborator

@pfrenssen this is handler already in the D10 compatibility PR. This should be closed.

@amitaibu
Copy link
Member

amitaibu commented Aug 1, 2024

Closing, based on #733 (comment)

@amitaibu amitaibu closed this Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix event dispatcher BC
4 participants